package com.deer.wms.system.manage.service.impl;

import com.deer.wms.project.root.service.SuperServiceImpl;
import com.deer.wms.system.manage.dao.ResourceMapper;
import com.deer.wms.system.manage.model.resource.Resource;
import com.deer.wms.system.manage.model.resource.ResourceDto;
import com.deer.wms.system.manage.service.ResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by guo on 2018/8/11.
 */
@Service
@Transactional
public class ResourceServiceImpl extends SuperServiceImpl<ResourceMapper, Resource> implements ResourceService {

    @Autowired
    private ResourceMapper resourceMapper;


    @Override
    public List<ResourceDto> findList() {
        return resourceMapper.findList();
    }

    @Override
    public List<ResourceDto> findPageList() {
        return resourceMapper.findPageList();
    }
}
